package controller;

import config.AppConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import services.AopServices;

public class Main {
    public static void main(String [] args){
        ApplicationContext context = new ClassPathXmlApplicationContext("aop.xml");
      //  AnnotationConfigApplicationContext context  = new AnnotationConfigApplicationContext(AppConfig.class);
        AopServices aopServices = (AopServices) context.getBean("aopServices");
    aopServices.print("aaaaaa");
    }
}
